home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club (Business) 1998 January / Software of the Month Club - Business Shareware (Volume 245) (January 1998).iso / dos / utility / see / view.bat < prev   
DOS Batch File  |  1996-07-18  |  812b  |  35 lines

  1.     @ECHO OFF
  2.     ECHO OFF
  3.  
  4. REM Ensure that we came from START
  5.     IF (%2) == () START
  6.  
  7. REM Check that file exists
  8.     IF EXIST %1 GOTO EOCKFILE
  9.     CLS
  10.     ECHO The file %1 was not found.  Please contact Pinnacle at
  11.     ECHO 514-345-9578 to find out how you can obtain the complete package.
  12.     GETKEY Press a key to continue... @
  13.     GOTO QUIT
  14. :EOCKFILE
  15.  
  16. REM Test for standard view versus hyperdoc
  17.     IF (%3) == ()    GOTO STDVIEW
  18.     IF (%3) == (ALL) GOTO ALLVIEW
  19.  
  20. REM It's a hyperview.  We explicitly state the prefix in case the user has
  21. REM changed the configuration file.
  22.     SEE %1 /P /N!:: /F::%3 /Q
  23.     GOTO QUIT
  24.  
  25. REM It's a hyperview, but we're showing all of it.
  26. :ALLVIEW
  27.     SEE %1 /P /N!::
  28.     GOTO QUIT
  29.  
  30. :STDVIEW
  31.     SEE %1
  32.  
  33. :QUIT
  34.   IF NOT (%2) == () START @ %2
  35.